setUriResolver

abstract fun setUriResolver(resolver: (Uri) -> Uri?)

Sets a custom Uri resolver. This method can be called more than once. Subsequent calls will overwrite previous calls. To remove a previously set resolver, pass the value null. Note: The given function must return an absolute path with a scheme.

Parameters

resolver

custom resolution function which accepts both relative and absolute uri and returns an absolute uri.